<template>
  <div class="zst-box">
	<zst-header :title='title'></zst-header>
	
		<div class="over-scroll" id="demo">
			<nav class="top-nav2" style="width:880px" >
			<p :class="currentNav==1?'hover':''" @click='currentNav=1'>基本走势<span></span></p>
			<p :class="currentNav==2?'hover':''" @click='currentNav=2'>连号走势<span></span></p>
			<p :class="currentNav==3?'hover':''" @click='currentNav=3'>重号走势<span></span></p>
			<p :class="currentNav==4?'hover':''" @click='currentNav=4'>大小走势<span></span></p>
			<p :class="currentNav==5?'hover':''" @click='currentNav=5'>奇偶走势<span></span></p>
			<p :class="currentNav==6?'hover':''" @click='currentNav=6'>跨度走势<span></span></p>
			<p :class="currentNav==7?'hover':''" @click='currentNav=7'>和值走势<span></span></p>
			<p :class="currentNav==8?'hover':''" @click='currentNav=8'>012路走势<span></span></p>
			</nav>
		</div>
	
	
	
    <div class="superbox">
		<div class="chart-container">
			<div class="chart-main">
				<div :class="currentNav==1?'page page1 active pageTit':'page page1 pageTit'" style="width:1200px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="basicSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(basic,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_10">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
									</div>
								</span>
								<span class="flex_10">
									<p>二区</p>
									<div>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>

									</div>
								</span>
								<span class="flex_10">
									<p>三区</p>
									<div>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>和值</p>
								</span>
								<span class="flex_2 line40">
									<p>跨度</p>
								</span>
								<span class="flex_2 line40">
									<p>区间比</p>
								</span>
								<span class="flex_2 line40">
									<p>奇偶比</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in basic' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_30">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<span class="flex_2">{{item.basicw[0]}}</span>
										<span class="flex_2">{{item.basicw[1]}}</span>
										<span class="flex_2">{{item.basicw[2]}}</span>
										<span class="flex_2">{{item.basicw[4]}}</span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==2?'page page2 active pageTit':'page page2 pageTit'" style="width:1410px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="continuousSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(continuous,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_10">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
									</div>
								</span>
								<span class="flex_10">
									<p>二区</p>
									<div>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>

									</div>
								</span>
								<span class="flex_10">
									<p>三区</p>
									<div>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
									</div>
								</span>
								<span class="flex_12">
									<p>红球分析</p>
									<div>
										<p>和值</p>
										<p>跨度</p>
										<p>区间比</p>
										<p>奇偶比</p>
										<p>重号</p>
										<p>连号</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>蓝球</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in continuous' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_30">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex-box flex_12">
											<template v-for='(items,indexs) in item.basicw'>
												<span>{{items}}</span>
											</template>
										</div>
										<span class="flex_2">{{item.blueCode}}</span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==3?'page page3 active pageTit':'page page3 pageTit'" style="width:1410px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="repeatSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(repeat,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_10">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
									</div>
								</span>
								<span class="flex_10">
									<p>二区</p>
									<div>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>

									</div>
								</span>
								<span class="flex_10">
									<p>三区</p>
									<div>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
									</div>
								</span>
								<span class="flex_12">
									<p>红球分析</p>
									<div>
										<p>和值</p>
										<p>跨度</p>
										<p>区间比</p>
										<p>奇偶比</p>
										<p>重号</p>
										<p>连号</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>蓝球</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in repeat' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_30">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex-box flex_12">
											<template v-for='(items,indexs) in item.basicw'>
												<span>{{items}}</span>
											</template>
										</div>
										<span class="flex_2">{{item.blueCode}}</span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_30 flex-box">
									<template v-for='(item,index) in basicOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==4?'page page4 active pageTit':'page page4 pageTit'" style="width:1030px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="bigOrSmallSort?'icon_jt_down':'icon_jt'" @click='sortData(bigOrSmall,currentNav)'><p>期次</p></span>
								<span>
									<p>第一位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第二位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第三位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第四位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第五位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第六位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span>
									<p>第七位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_4">
									<p>大小比</p>
									<div>
										<p>0:7</p>
										<p>1:6</p>
										<p>2:5</p>
										<p>3:4</p>
										<p>4:3</p>
										<p>5:2</p>
										<p>6:1</p>
										<p>7:0</p>
									</div>
								</span>
								<span>
									<p>蓝球</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in bigOrSmall' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<template v-for='(items,indexs) in item.origin'>
											<span v-if='items == 0' :class="indexs>13&&indexs<22?'cur_bf':indexs%2==0?'cur_d':'cur_x'"><font>{{bigOrSmallIndex[indexs]}}</font></span>
											<span v-else>{{items}}</span>
										</template>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2 ">出现次数</span>
								<template v-for='(item,index) in bigOrSmallOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<template v-for='(item,index) in bigOrSmallOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<template v-for='(item,index) in bigOrSmallOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<template v-for='(item,index) in bigOrSmallOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==5?'page page5 active pageTit':'page page5 pageTit'" style="width:1030px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="paritySort?'icon_jt_down ':'icon_jt'" @click='sortData(parity,currentNav)'><p>期次</p></span>
								<span>
									<p>第一位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第二位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第三位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第四位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第五位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第六位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span>
									<p>第七位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_4">
									<p>奇偶比</p>
									<div>
										<p>0:7</p>
										<p>1:6</p>
										<p>2:5</p>
										<p>3:4</p>
										<p>4:3</p>
										<p>5:2</p>
										<p>6:1</p>
										<p>7:0</p>
									</div>
								</span>
								<span>
									<p>蓝球</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in parity' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<template v-for='(items,indexs) in item.origin'>
											<span v-if='items == 0' :class="indexs>13&&indexs<22?'cur_bf':indexs%2==0?'cur_d':'cur_x'"><font>{{parityIndex[indexs]}}</font></span>
											<span v-else>{{items}}</span>
										</template>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<template v-for='(item,index) in parityOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<template v-for='(item,index) in parityOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<template v-for='(item,index) in parityOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<template v-for='(item,index) in parityOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==6?'page page6 active pageTit':'page page6 pageTit'" style="width:3200px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="spanSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(span,currentNav)'><p>期次</p></span>
								<span class="line40">
									<p>星期</p>
								</span>
								<span class="line40">
									<p>和值</p>
								</span>
								<span  class="line40">
									<p>跨度</p>
								</span>
								<span class="flex_24">
									<p>总跨度走势</p>
									<div>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
									</div>
								</span>
								<span class="flex_9">
									<p>跨度形态分析</p>
									<div>
										<p>大</p>
										<p>小</p>
										<p>奇</p>
										<p>偶</p>
										<p>质</p>
										<p>合</p>
										<p>0路</p>
										<p>1路</p>
										<p>2路</p>
									</div>
								</span>
								<span class="line40">
									<p>振幅</p>
								</span>
								<span class="flex_24">
									<p>振幅走势</p>
									<div>
										<p>0</p>
										<p>1</p>
										<p>2</p>
										<p>3</p>
										<p>4</p>
										<p>5</p>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in span' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<span>{{item.spancw[0]}}</span>
										<span>{{item.spancw[1]}}</span>
										<div class="flex_33 flex-box">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' :class="indexs>23?indexs%2==0?'cur_d':'cur_x':'cur_bf'"><font>{{spanIndex[indexs]}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<span>{{item.spancw[2]}}</span>
										<div class="flex_24 flex-box">
											<template v-for='(items,indexs) in item.origin1'>
												<span v-if='items == 0' class="cur_bf"><font>{{indexs}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<template v-for='(item,index) in spanOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<template v-for='(item,index) in spanOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<template v-for='(item,index) in spanOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<template v-for='(item,index) in spanOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==7?'page page7 active pageTit':'page page7 pageTit'" style="width:1450px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="sumValuesSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(sumValues,currentNav)'><p>期次</p></span>
								<span class="line40">
									<p>星期</p>
								</span>
								<span class="line40">
									<p>和值</p>
								</span>
								<span class="flex_11">
									<p>和值区间分布</p>
									<div>
										<p>28-60</p>
										<p>61-70</p>
										<p>71-80</p>
										<p>81-90</p>
										<p>91-100</p>
										<p>101-110</p>
										<p>111-120</p>
										<p>121-130</p>
										<p>131-140</p>
										<p>141-150</p>
										<p>151-210</p>
									</div>
								</span>
								<span class="flex_3">
									<p>和值形态</p>
									<div>
										<p>奇</p>
										<p>偶</p>
										<p>振幅</p>
									</div>
								</span>
								<span class="line40">
									<p>和尾</p>
								</span>
								<span class="flex_10">
									<p>和尾分布</p>
									<div>
										<p>0</p>
										<p>1</p>
										<p>2</p>
										<p>3</p>
										<p>4</p>
										<p>5</p>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in sumValues' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<span>{{item.spancw[0]}}</span>
										<div class="flex_11 flex-box">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' :class="indexs>23?indexs%2==0?'cur_d':'cur_x':'cur_bf'"><font>{{item.spancw[0]}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex_3 flex-box">
											<template v-for='(items,indexs) in item.origin1'>
												<span v-if='items == 0' :class="indexs<2?indexs%2==0?'cur_d':'cur_x':'cur_bf'"><font>{{sumValuesIndex[indexs]}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<span>{{item.spancw[1]}}</span>
										<div class="flex_10 flex-box">
											<template v-for='(items,indexs) in item.origin2'>
												<span v-if='items == 0' class="cur_bf"><font>{{indexs}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<template v-for='(item,index) in sumValuesOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<template v-for='(item,index) in sumValuesOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<template v-for='(item,index) in sumValuesOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<template v-for='(item,index) in sumValuesOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==8?'page page8 active pageTit':'page page8 pageTit'" style="width:1200px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record tit-record2">
								<span :class="roadSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(road,currentNav)'><p>期次</p></span>
								<span class="line40">
									<p>星期</p>
								</span>
								<span class="flex_27">
									<p>号码分布</p>
									<div class="border_b">
										<p>0路</p>
										<p>1路</p>
										<p>2路</p>
									</div>
									<div>
										<p>03</p>
										<p>06</p>
										<p>09</p>
										<p>12</p>
										<p>24</p>
										<p>27</p>
										<p>30</p>
										<p>01</p>
										<p>04</p>
										<p>07</p>
										<p>10</p>
										<p>13</p>
										<p>16</p>
										<p>19</p>
										<p>22</p>
										<p>25</p>
										<p>28</p>
										<p>02</p>
										<p>05</p>
										<p>08</p>
										<p>11</p>
										<p>14</p>
										<p>17</p>
										<p>20</p>
										<p>23</p>
										<p>26</p>
										<p>29</p>
									</div>
								</span>
								<span class="flex_10">
									<p class="line40">基本号码分析</p>
									<div>
										<p>012路比</p>
										<p>奇偶比</p>
										<p>和值</p>
										<p>跨度</p>
										<p>AC值</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in road' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex_27 flex-box">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{roadIndex[indexs]}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex_10 flex-box">
											<template v-for='(items,indexs) in item.origin1'>
												<span>{{items}}</span>
											</template>
										</div>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<template v-for='(item,index) in roadOther.appearCount'>
									<span>{{item}}</span>
								</template>
								<span v-for='item in new Array(5)' class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<template v-for='(item,index) in roadOther.avgMiss'>
									<span>{{item}}</span>
								</template>
								<span v-for='item in new Array(5)' class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<template v-for='(item,index) in roadOther.maxMiss'>
									<span>{{item}}</span>
								</template>
								<span v-for='item in new Array(5)' class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<template v-for='(item,index) in roadOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
								<span v-for='item in new Array(5)' class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<footer class="footer">
		<span :class="currentNum==30?'hover':''" @click='changeBasicData(30,data)'>30期</span>
		<span :class="currentNum==50?'hover':''" @click='changeBasicData(50,data)'>50期</span>
		<span :class="currentNum==100?'hover':''" @click='changeBasicData(100,data)'>100期</span>
	</footer>
  </div>
</template>

<script>
import zstHeader from './head'
import {getTrend} from '@/api/user'
import { Toast } from 'vant';
export default {
	data() {
	    return {
	    	title:'',
	    	data:{},
	    	basic:[],
	    	basicOther:{},
	    	continuous:[],
	    	continuousOther:{},
	    	repeat:[],
	    	repeatOther:{},
	    	bigOrSmall:[],
	    	bigOrSmallOther:{},
	    	parity:[],
	    	parityOther:{},
	    	
	    	span:[],
	    	spanOther:{},

	    	road:[],
	    	roadOther:{},

	    	sumValues:[],
	    	sumValuesOther:{},
	    	currentNum:30,
	    	currentNav:'1',

	    	basicSort:false,
	    	continuousSort:false,
	    	repeatSort:false,
	    	bigOrSmallSort:false,
	    	paritySort:false,
	    	spanSort:false,
	    	sumValuesSort:false,
	    	roadSort:false,


			bigOrSmallIndex:['大','小','大','小','大','小','大','小','大','小','大','小','大','小','0:7','1:6','2:5','3:4','4:3','5:2','6:1','7:0','大','小'],
			parityIndex:['奇','偶','奇','偶','奇','偶','奇','偶','奇','偶','奇','偶','奇','偶','0:7','1:6','2:5','3:4','4:3','5:2','6:1','7:0','奇','偶'],
			spanIndex:['6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','大','小','奇','偶','质','合','0','1','2'],
			sumValuesIndex:['奇','偶','0'],

			roadIndex:['03','06','09','12','24','27','30','01','04','07','10','13','16','19','22','25','28','02','05','08','11','14','17','20','23','26','29']
	    }
	},
	props:['gid','currentNavs'],
	components:{
		zstHeader,
		// [Dialog.Component.name]: Dialog.Component,
	},
	watch: {
	　　　'$route' (to, from) {
			this.getInfo()
		}
	　　　　　
	},
	methods:{
		getData(gid){
			getTrend({"gid":gid}).then((v)=>{
				let data = v.data;
				let status = data.status,mess = data.message;
				if (status === "_0000") {
					data = data.data;
					this.basicOther = {
						appearCount:data.basic.appearCount.split(','),
						avgMiss:data.basic.avgMiss.split(','),
						maxContinuous:data.basic.maxContinuous.split(','),
						maxMiss: data.basic.maxMiss.split(','),
					}

					let bigOrSmall = data.bigOrSmall;
					this.bigOrSmallOther = {
						appearCount:bigOrSmall.appearCount.split(','),
						avgMiss:bigOrSmall.avgMiss.split(','),
						maxContinuous:bigOrSmall.maxContinuous.split(','),
						maxMiss: bigOrSmall.maxMiss.split(','),
					}
					let parity = data.parity;
					this.parityOther = {
						appearCount:bigOrSmall.appearCount.split(','),
						avgMiss:bigOrSmall.avgMiss.split(','),
						maxContinuous:bigOrSmall.maxContinuous.split(','),
						maxMiss: bigOrSmall.maxMiss.split(','),
					}
					let span = data.span;
					this.spanOther = {
						appearCount:[].concat(['-','-','-'],span.appearCount.split(',').slice(0,33),['-'],span.appearCount.split(',').slice(33)),
						avgMiss:[].concat(['-','-','-'],span.avgMiss.split(',').slice(0,33),['-'],span.avgMiss.split(',').slice(33)),
						maxContinuous:[].concat(['-','-','-'],span.maxContinuous.split(',').slice(0,33),['-'],span.maxContinuous.split(',').slice(33)),
						maxMiss:[].concat(['-','-','-'],span.maxMiss.split(',').slice(0,33),['-'],span.maxMiss.split(',').slice(33)),
					}
					let sumValues = data.sumValues;
					this.sumValuesOther = {
						appearCount:[].concat(['-','-'],sumValues.appearCount.split(',').slice(0,13),['-','-'],sumValues.appearCount.split(',').slice(13)),
						avgMiss:[].concat(['-','-'],sumValues.avgMiss.split(',').slice(0,13),['-','-'],sumValues.avgMiss.split(',').slice(13)),
						maxContinuous:[].concat(['-','-'],sumValues.maxContinuous.split(',').slice(0,13),['-','-'],sumValues.maxContinuous.split(',').slice(13)),
						maxMiss:[].concat(['-','-'],sumValues.maxMiss.split(',').slice(0,13),['-','-'],sumValues.maxMiss.split(',').slice(13)),
					}
					//返回58位，多了一位
					console.log(this.spanOther)

					///少了三位
					let road = data.road;
					this.roadOther = {
						appearCount:[].concat(['-'],road.appearCount.split(',')),
						avgMiss:[].concat(['-'],road.avgMiss.split(',')),
						maxContinuous:[].concat(['-'],road.maxContinuous.split(',')),
						maxMiss:[].concat(['-'],road.maxMiss.split(',')),
					}
					this.data = data;
					this.changeBasicData(30,data);
				}else{
					Toast(mess)
				}
			})
		},
		changeBasicData(num,v){
			let data = v;
			let t= this;
			let basicData =  data.basic.trend.slice(0,num),
				continuousData = data.basic.trend.slice(0,num),
				repeatData = data.basic.trend.slice(0,num),
				bigOrSmallData = data.bigOrSmall.trend.slice(0,num),
				parityData = data.parity.trend.slice(0,num),
				roadData = data.road.trend.slice(0,num),
				sumValuesData = data.sumValues.trend.slice(0,num),
				spanData = data.span.trend.slice(0,num);
			this.currentNum = num
			basicData = basicData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index,
					'basicw':v.basicw.split(','),
					'weekDay':t.getWeek(v.awardTime)
				});
				return datas
			})
			
			continuousData = continuousData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'basicw':v.basicw.split(',').slice(0,6),
					'weekDay':t.getWeek(v.awardTime),
					'num':index
					}
				);
				return datas
			})
			repeatData = repeatData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'basicw':v.basicw.split(',').slice(0,6),
					'weekDay':t.getWeek(v.awardTime),
					'num':index
					}
				);
				return datas
			})
			
			bigOrSmallData = bigOrSmallData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),

					'num':index
					}
				);
				return datas
			})
			parityData = parityData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			spanData = spanData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'weekDay':t.getWeek(v.awardTime),
					'spancw':v.spancw.split(','),
					'origin':v.origin.split(',').slice(0,33),
					'origin1':v.origin.split(',').slice(33),
					'num':index
				});
				return datas
			})
			//少了一位
			sumValuesData = sumValuesData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'weekDay':t.getWeek(v.awardTime),
					'spancw':v.sumcw.split(','),
					'origin':v.origin.split(',').slice(0,11),
					'origin1':v.origin.split(',').slice(11,14),
					'origin2':v.origin.split(',').slice(14),
					'num':index
				});
				return datas
			})
			//少两位
			roadData = roadData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'weekDay':t.getWeek(v.awardTime),
					'origin':v.origin.split(','),
					'origin1':v.roadcw.split(','),
					'num':index
				});
				return datas
			})
			this.basic = basicData
			this.continuous = continuousData
			this.repeat = repeatData
			this.sumValues = sumValuesData
			this.road =roadData

			this.bigOrSmall = bigOrSmallData
			this.parity = parityData
			this.span = spanData
			
		},
		sortData(data,current){
			if (current==1) {
				this.basicSort = !this.basicSort
			}
			if (current==2) {
				this.continuousSort = !this.continuousSort
			}
			if (current==3) {
				this.repeatSort = !this.repeatSort
			}
			if (current==4) {
				this.bigOrSmallSort = !this.bigOrSmallSort
			}
			if (current==5) {
				this.paritySort = !this.paritySort
			}
			if (current==6) {
				this.spanSort = !this.spanSort
			}
			if (current==7) {
				this.sumValuesSort = !this.sumValuesSort
			}
			if (current==8) {
				this.roadSort = !this.roadSort
			}
			
			data.sort(function(a,b){
				if (Number(a.num)-Number(b.num)>0) {
					return Number(b.num)-Number(a.num);
				}else{
					return Number(a.num)-Number(b.num);
				}
				
			})
		},
		getInfo(){//初使化
			this.currentNav = this.currentNavs;
			this.title = this.lottery[this.gid].name;
			this.getData(this.gid);
		},
		checkValSame(val){
			let arr = val.split(':');
			let arrLen = arr.length;
			let i = 0;
			arr.map(v=>{
				if (v!==arr[0]) {
					i++
				}
			});
			if (i==0) {
				return true
			}else{
				return false;
			}
		},
		getWeek(time){
			var mydate = new Date(time);
			var weekday=["7","1","2","3","4","5","6"];
			return weekday[mydate.getDay()]
		}

	},
	created(){
		this.getInfo();

	},
	mounted () {
		var tab=document.getElementById("demo");
		let currentNavs = this.currentNav;
		tab.scrollLeft=(currentNavs-1)*90;
	}
};
</script>

<style lang="less" scoped>
	@import './style.less';
</style>

